<!DOCTYPE HTML>
<html>
<head>
<title>小工具</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="Novus Admin Panel Responsive web template, Bootstrap Web Templates, Flat Web Templates, Android Compatible web template, 
SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, SonyEricsson, Motorola web design" />
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap3.css" rel='stylesheet' type='text/css' />
<!-- Custom CSS -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<!-- font CSS -->
<!-- font-awesome icons -->
<link href="css/font-awesome.css" rel="stylesheet"> 
<!-- //font-awesome icons -->
 <!-- js-->
<script src="js/jquery-1.11.1.min.js"></script>
<script src="js/modernizr.custom.js"></script>
<!--webfonts-->
<link href='//fonts.googleapis.com/css?family=Roboto+Condensed:400,300,300italic,400italic,700,700italic' rel='stylesheet' type='text/css'>
<!--//webfonts--> 
<!--animate-->
<link href="css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="js/wow.min.js"></script>
	<script>
		 new WOW().init();
	</script>
<!--//end-animate-->
<!--skycons-icons-->
<script src="js/skycons.js"></script>
<!--//skycons-icons-->
<!--circlechart-->
<script src="js/jquery.circlechart.js"></script>
<!--circlechart-->
<!-- Metis Menu -->
<script src="js/metisMenu.min.js"></script>
<script src="js/custom.js"></script>
<link href="css/custom.css" rel="stylesheet">
<!--//Metis Menu -->
</head> 
<body class="cbp-spmenu-push">
	<div class="main-content">
		<!--left-fixed -navigation-->
		<div class=" sidebar" role="navigation">
            <div class="navbar-collapse">
				<nav class="cbp-spmenu cbp-spmenu-vertical cbp-spmenu-left" id="cbp-spmenu-s1">
					<ul class="nav" id="side-menu">
						<li>
							<a href="/" class="active">仪表盘</a>
						</li>
						
						<li>
							<a href="/createTable" class="chart-nav">创建问卷 <span class="nav-badge-btm pull-right">new</span></a>
						</li>
						
						<li>
							<a href="/widgets">小工具 <span class="nav-badge-btm">08</span></a>
						</li>
						
						<li>
							<a href="/tables">数据表 <span class="nav-badge">05</span></a>
						</li>
						
						
						<li>
							<a href="/charts" class="chart-nav"></i>图表 <span class="nav-badge-btm pull-right">new</span></a>
						</li>
					</ul>
					<div class="clearfix"> </div>
					<!-- //sidebar-collapse -->
				</nav>
			</div>
		</div>
		<!--left-fixed -navigation-->
		<!-- header-starts -->
		<div class="sticky-header header-section ">
			<div class="header-left">
				<!--toggle button start-->
				<button id="showLeftPush"></button>
				<!--toggle button end-->
				<!--logo -->
				<div class="logo">
					<a href="/">
						<h1>用户后台</h1>
					</a>
				</div>
				<!--//logo-->
				<!--search-box-->
				<div class="search-box">
					<form class="input">
						<input class="sb-search-input input__field--madoka" placeholder="Search..." type="search" id="input-31" />
						<label class="input__label" for="input-31">
							<svg class="graphic" width="100%" height="100%" viewBox="0 0 404 77" preserveAspectRatio="none">
								<path d="m0,0l404,0l0,77l-404,0l0,-77z"/>
							</svg>
						</label>
					</form>
				</div><!--//end-search-box-->
				<div class="clearfix"> </div>
			</div>
			<div class="header-right">
				<div class="profile_details_left"><!--notifications of menu start -->
					<ul class="nofitications-dropdown">
						<li class="dropdown head-dpdn">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><span>信息</span></a>
							<ul class="dropdown-menu">
								<li>
									<div class="notification_header">
										<h3>你有xx条信息</h3>
									</div>
								</li>
					
									<div class="notification_bottom">
										<a href="#">查看所有信息</a>
									</div> 
								</li>
							</ul>
						</li>
						<li class="dropdown head-dpdn">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><span>通知</span></a>
							<ul class="dropdown-menu">
								<li>
									<div class="notification_header">
										<h3>你有xx条通知</h3>
									</div>
								</li>
					
									<div class="notification_bottom">
										<a href="#">查看所有通知</a>
									</div> 
								</li>
							</ul>
						</li>	
						<li class="dropdown head-dpdn">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><span>任务</span></a>
							<ul class="dropdown-menu">
								<li>
									<div class="notification_header">
										<h3>你有xx条挂起任务</h3>
									</div>
								</li>
					
									<div class="notification_bottom">
										<a href="#">查看所有挂起任务</a>
									</div> 
								</li>
							</ul>
						</li>	
					</ul>
					<div class="clearfix"> </div>
				</div>
				<!--notification menu end -->
				<div class="profile_details">		
					<ul>
						<li class="dropdown profile_details_drop">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
								<div class="profile_img">	
									<span class="prfil-img"></span> 
									<div class="user-name">
										<p>用户：{{username}}</p>
										
									</div>
									<i class="fa fa-angle-down lnr"></i>
									<i class="fa fa-angle-up lnr"></i>
									<div class="clearfix"></div>	
								</div>	
							</a>
							<ul class="dropdown-menu drp-mnu">
								<li> <a href="#"></i> 设置</a> </li> 
								<li> <a href="#"></i> 简介</a> </li> 
								<li> <a href="#" onclick="logout()"></i> 退出登录</a> </li>
							</ul>
						</li>
					</ul>
				</div>
				<div class="clearfix"> </div>				
			</div>
			<div class="clearfix"> </div>	
		</div>
		<!-- //header-ends -->
		<!-- main content start-->
		<div id="page-wrapper">
			<div class="main-page">
				<div class="elements">
					<div class="col-md-6 weather-grids widget-shadow">
						<div class="header-top">
							<figure class="icons">
								<canvas id="clear-day" width="64" height="64"></canvas>
							</figure>
							<h2>天气</h2>
							<ul>
								<li><p>°C</p></li>
								<li><p class="cen">°F</p></li>
							</ul>
							<div class="clearfix"> </div>
						</div>
						<div class="header-bottom">
							<div class="header-bottom1">
								<div class="header-head">
									<h4>晴</h4>
									<figure class="icons">
										<canvas id="partly-cloudy-day" width="64" height="64"></canvas>
									</figure>	
									<h6>20°</h6>
									<div class="bottom-head">
										<p>星期一</p>
									</div>
								</div>
							</div>
							<div class="header-bottom1 header-bottom2">
								<div class="header-head">
									<h4>阴</h4>
									<figure class="icons">
										<canvas id="cloudy" width="64" height="64"></canvas>
									</figure>
									<h6>37°</h6>
									<div class="bottom-head">
										<p>星期二</p>
									</div>
								</div>
							</div>
							<div class="header-bottom1">
								<div class="header-head">
									<h4>小雨</h4>
									<figure class="icons">
										<canvas id="rain" width="64" height="64"></canvas>
									</figure>
									<h6>18°</h6>
									<div class="bottom-head">
										<p>星期三</p>
									</div>
								</div>
							</div>
							<div class="header-bottom1 header-bottom2">
								<div class="header-head">
									<h4>下雪</h4>
									<figure class="icons">
										<canvas id="snow" width="64" height="64"></canvas>
									</figure>
									<h6>-2°</h6>
									<div class="bottom-head">
										<p>星期四</p>
									</div>
								</div>
							</div>
							<div class="clearfix"> </div>
						</div>
						<script>
							 var icons = new Skycons({"color": "#fff"}),
								  list  = [
									"clear-day"
								  ],
								  i;

							  for(i = list.length; i--; )
								icons.set(list[i], list[i]);

							  icons.play();
						</script>
						<script>
							 var icons = new Skycons({"color": "#E94E02"}),
								  list  = [
									"clear-night", "partly-cloudy-day",
									"partly-cloudy-night", "cloudy", "rain", "sleet", "snow", "wind",
									"fog"
								  ],
								  i;

							  for(i = list.length; i--; )
								icons.set(list[i], list[i]);

							  icons.play();
						</script>
					</div>
					<!--  -->
					<div class="clearfix"> </div>
				</div>
				<div class="widget_1 row elements">
					<div class="col-sm-4 widget_1_box widget-shadow">
						<div class="tile-progress bg-info">
							<div class="content">
								<h4><i class="fa fa-dashboard icon-sm"></i> 服务器负载</h4>
								<div class="progress progress-striped active">
									 <div class="bar  blue" style="width: 80%;"></div>
								</div>
								<span>40% increase</span>
							</div>
						</div>
					</div>
					<div class="col-sm-4 widget_1_box widget-mdl-grid widget-shadow">
						<div class="tile-progress bg-success">
							<div class="content">
								<h4><i class="fa fa-dashboard icon-sm"></i> 服务器负载</h4>
								<div class="progress progress-striped active">
									 <div class="bar yellow" style="width: 80%;"></div>
								</div>
								<span>40% increase</span>
							</div>
						</div>
					</div>
					<div class="col-sm-4 widget_1_box widget-shadow">
					   <div class="tile-progress bg-danger">
							<div class="content">
								<h4><i class="fa fa-dashboard icon-sm"></i> 服务器负载</h4>
								<div class="progress progress-striped active">
									 <div class="bar orange" style="width: 80%;"></div>
								</div>
								<span>40% increase</span>
							</div>
						</div>
					</div>
					<div class="clearfix"> </div>
				</div>
			</div>
		</div>
		<!--footer-->
		<div class="footer">
		 
			<div id="bottom" style="width:1000px;margin:0 auto; padding:20px 0;">
				<a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=35052402000274" style="display:inline-block;text-decoration:none;height:20px;line-height:20px;"><img src="imgs/备案图标.png" style="float:left;"/><p style="float:left;height:20px;line-height:20px;margin: 0px 0px 0px 5px; color:black;">闽公网安备 35052402000274号</p></a>
			
				<a target="_blank" href="https://beian.miit.gov.cn/#/Integrated/index" style="display:inline-block;text-decoration:none;height:20px;line-height:20px;"><img src="" style="float:left;"/><p style="float:left;height:20px;line-height:20px;margin: 0px 0px 0px 5px; color:black;">备案号 : 闽ICP备2020020512号-1</p></a>
			</div>
		</div>
        <!--//footer-->
	</div>
	<!-- Classie -->
		<script src="js/classie.js"></script>
		<script>

function logout() {
            $.ajax({
                url: "/logout",
                type: "POST",
                dataType: "json",
                success: function (res) {
                    console.log(res);
                    if (res.code === 200) {
                        window.location.href = "/questionnaire";
                    }
                },
                error: function (msg) {
                    console.log('网络或者服务器有问题');
                }
            })
        }

			var menuLeft = document.getElementById( 'cbp-spmenu-s1' ),
				showLeftPush = document.getElementById( 'showLeftPush' ),
				body = document.body;
				
			showLeftPush.onclick = function() {
				classie.toggle( this, 'active' );
				classie.toggle( body, 'cbp-spmenu-push-toright' );
				classie.toggle( menuLeft, 'cbp-spmenu-open' );
				disableOther( 'showLeftPush' );
			};
			
			function disableOther( button ) {
				if( button !== 'showLeftPush' ) {
					classie.toggle( showLeftPush, 'disabled' );
				}
			}
		</script>
	<!--scrolling js-->
	<script src="js/jquery.nicescroll.js"></script>
	<script src="js/scripts.js"></script>
	<!--//scrolling js-->
	<!-- Bootstrap Core JavaScript -->
   <script src="js/bootstrap3.js"> </script>
</body>
</html>